#include <iostream>
#include "Interval.h"

int main( void )
{
	Interval<double> i1(0.002,1);
	Interval<double> i2(0.002,2);
	Interval<double> i3(0.002,4);

	Interval<double> u1(5,1);
	Interval<double> u2(5,2);
	Interval<double> u3(5,4);

	cout << "First Meassure: " << "I= " << i1 << " U= " << u1 << endl;
	cout << "Resistance(R = U/I)= " << u1 / i1 << endl;
	cout << "Power(P = U*I)= " << u1 * i1 << endl;
	cout << endl;

	cout << "Second Meassure: " << "I= " << i2 << " U= " << u2 << endl;
	cout << "Resistance(R = U/I)= " << u2 / i2 << endl;
	cout << "Power(P = U*I)= " << u2 * i2 << endl;
	cout << endl;

	cout << "Third Meassure: " << "I= " << i3 << " U= " << u3 << endl;
	cout << "Resistance(R = U/I)= " << u3 / i3 << endl;
	cout << "Power(P = U*I)= " << u3 * i3 << endl;
	cout << endl;

	cin.get();
	return 0;
}